<%@ page contentType="text/html;charset=UTF-8" %>    
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<c:set var="ctx" value="${pageContext.request.contextPath}"/>
<c:set var="sysName" value="imp"/>
<c:set var="page_admin" value="${pageContext.request.contextPath}/sendPage/imp/admin"/>
		<li class="treeview " userKey="">
			<a href="javascript:void('0');">
			<i class="fa fa-cog"></i> <span>信息登记</span><i class="fa fa-angle-left pull-right"></i>
			</a>
			<ul class="treeview-menu" >
				<li id="jszr-add" class="" userKey=""><a data-load="true" href="${ctx}/sendPage//imp/admin/zrxm/jszr-add"><i class="fa fa-circle-o"></i>技术项目</a></li>
				<li id="zlzr-add" class="" userKey=""><a data-load="true" href="${ctx}/sendPage//imp/admin/pro/zlzr-add"><i class="fa fa-circle-o"></i>专利（转让）</a></li>
				<li id="zszr-add" class="" userKey=""><a data-load="true" href="${ctx}/sendPage//imp/admin/pro/zszr-add"><i class="fa fa-circle-o"></i>知识（转让）</a></li>
				<li id="zsxq-add" class="" userKey=""><a data-load="true" href="${ctx}/sendPage//imp/admin/pro/zsxq-add"><i class="fa fa-circle-o"></i>知识（需求）</a></li>
			</ul>
		</li>
		<li class="treeview " userKey="">
			<a href="javascript:void('0');">
			<i class="fa fa-cog"></i> <span>发布审核</span><i class="fa fa-angle-left pull-right"></i>
			</a>
			<ul class="treeview-menu" >
				<li id="common-audit-list" class="" userKey=""><a data-load="true" href="${ctx}/sendPage//plateform/admin/rule/audit/common-audit-list"><i class="fa fa-circle-o"></i>审核任务</a></li>
			</ul>
		</li>
		<li class="treeview " userKey="">
			<a href="javascript:void('0');">
			<i class="fa fa-cog"></i> <span>信息发布</span><i class="fa fa-angle-left pull-right"></i>
			</a>
			<ul class="treeview-menu" >
				<li id="zdxm-list" class="" userKey=""><a data-load="true" href="${ctx}/sendPage//imp/admin/pubinfo/zdxm/zdxm-list"><i class="fa fa-circle-o"></i>重大项目录入</a></li>
				<li id="zl-list" class="" userKey=""><a data-load="true" href="${ctx}/sendPage//imp/admin/pubinfo/zl/zl-list"><i class="fa fa-circle-o"></i>专利录入</a></li>
				<li id="xpz-list" class="" userKey=""><a data-load="true" href="${ctx}/sendPage//imp/admin/pubinfo/xpz/xpz-list"><i class="fa fa-circle-o"></i>新品种</a></li>
				<li id="itpro-list" class="" userKey=""><a data-load="true" href="${ctx}/sendPage//imp/admin/pro/itpro-list"><i class="fa fa-circle-o"></i>技术项目</a></li>
			</ul>
		</li>
		<li class="treeview " userKey="">
			<a href="javascript:void('0');">
			<i class="fa fa-cog"></i> <span>项目类型</span><i class="fa fa-angle-left pull-right"></i>
			</a>
			<ul class="treeview-menu" >
				<li id="dict-list" class="" userKey=""><a data-load="true" href="${ctx}/sendPage//plateform/admin/dict/dict-list?sysName=${sysName}"><i class="fa fa-circle-o"></i>代码集管理</a></li>
			</ul>
		</li>
		<li class="treeview userSLock" userKey="/nyt/pro/szgpsj">
			<a href="javascript:void('0');">
			<i class="fa fa-cog"></i> <span>菜单管理</span><i class="fa fa-angle-left pull-right"></i>
			</a>
			<ul class="treeview-menu" >
				<li id="sysModule-list" class="" userKey=""><a data-load="true" href="${ctx}/sendPage/plateform/admin/module/sysModule-list?code=pubinfo&sysName=${sysName}"><i class="fa fa-circle-o"></i>菜单设置</a></li>
			</ul>
		</li>
		<li class="treeview userSLock" userKey="/nyt/pro">
			<a href="javascript:void('0');">
			<i class="fa fa-cog"></i> <span>接口管理</span><i class="fa fa-angle-left pull-right"></i>
			</a>
			<ul class="treeview-menu" >
				<li id="params-list" class="" userKey=""><a data-load="true" href="${ctx}/sendPage/plateform/admin/rule/params-list?sysName=pubinfo"><i class="fa fa-circle-o"></i>接口定义</a></li>
				<li id="rule-list" class="" userKey=""><a data-load="true" href="${ctx}/sendPage/plateform/admin/rule/rule-list"><i class="fa fa-circle-o"></i>插件组合</a></li>
			</ul>
		</li>
		<li class="treeview " userKey="">
			<a href="javascript:void('0');">
			<i class="fa fa-cog"></i> <span>审核规则</span><i class="fa fa-angle-left pull-right"></i>
			</a>
			<ul class="treeview-menu" >
				<li id="audit-rule-list" class="" userKey=""><a data-load="true" href="${ctx}/sendPage/plateform/admin/rule/audit/audit-rule-list?sysName=${sysName}"><i class="fa fa-circle-o"></i>规则设置</a></li>
			</ul>
		</li>

<script>
  	 	//part1、注入jquery.pjax 绑定A标签点击事件
      	$(document).pjax("[data-pjax='true'], a[data-pjax='true']", ".content-wrapper", {
       		fragment: ".content-wrapper"
      	});
	  	//$(document).pjax('a', '#pjax-container');
	  	$(document).on("pjax:send", function() { 
			//alert("发送完成");
		}); 
		$(document).on("pjax:complete", function(resultData) { 
	  		//alert("加载完成");
	  		showClickMenu();
		});
		
		//part2、注入jquery.load 绑定A标签load事件
		$("[data-load='true']").each(function(){
			var thisHref = $(this).attr("href");
			$(this).attr("load-url",thisHref);
			$(this).attr("href","javascript:;");
			$(this).click(function(){
				$(".content-wrapper").load(thisHref+" .content-wrapper>",function(resultData){
					 //alert(resultData);
					 $result = $(resultData);
			         $result.find("script").appendTo(".content-wrapper");//保证子页面的js内容能被引入进来
			         showClickMenu();
				});
			});
		});
 </script>
